//
//  Grammar.m
//  Grammar
//
//  Created by Rick on 7/11/13.
//
//

#import "Grammar.h"

@implementation Grammar

- (id)init
{
    self = [super init];
    if (self) {
        self.keyWords = [NSMutableArray array];
    }
    return self;
}

- (NSDictionary*)attributeMapDictionary
{
    return @{@"grammarId": @"grammarId"
             ,@"title": @"title"
             ,@"grammarTagId": @"grammarTagId"
             ,@"explainCount": @"explainQuantity"
             ,@"grammarVersion": @"version"
             ,@"lastOperate ": @"lastOperate"
             ,@"creteTimeStamp": @"createTime"
             ,@"lastUpdateTimeStamp": @"lastUpdateTime"
             ,@"keyWords": @"keyWords"
             ,@"state": @"state"};
}

- (void)dealloc
{
    [_state release];
    [_grammarId release];
    [_title release];
    [_grammarTagId release];
    [_explainCount release];
    [_grammarVersion release];
    [_lastOperate release];
    [_creteTimeStamp release];
    [_lastUpdateTimeStamp release];
    [_keyWords release];
    [super dealloc];
}
@end
